package com.freeter.modules.FriendShipLink.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.List;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.freeter.common.utils.PageUtils;

import com.freeter.modules.FriendShipLink.dao.FriendshipLinkDao;
import com.freeter.modules.FriendShipLink.entity.FriendshipLinkEntity;
import com.freeter.modules.FriendShipLink.service.FriendshipLinkService;
import com.freeter.modules.FriendShipLink.entity.vo.FriendshipLinkVO;
import com.freeter.modules.FriendShipLink.entity.view.FriendshipLinkView;
import com.freeter.common.utils.PageInfo;

@SuppressWarnings({"unchecked","rawtypes"})
@Service("friendshipLinkService")
public class FriendshipLinkServiceImpl extends ServiceImpl<FriendshipLinkDao, FriendshipLinkEntity> implements FriendshipLinkService {


    @Override
	public PageUtils queryPage(PageInfo pageInfo, Wrapper<FriendshipLinkEntity> wrapper) {
		  	Page<FriendshipLinkView> page =pageInfo.getPage();
	        page.setRecords(baseMapper.selectListView(page,wrapper));
	    	PageUtils pageUtil = new PageUtils(page);
	    	return pageUtil;

 	}
    
    @Override
	public List<FriendshipLinkVO> selectListVO( Wrapper<FriendshipLinkEntity> wrapper) {
 		return baseMapper.selectListVO(wrapper);
	}
	
	@Override
	public FriendshipLinkVO selectVO( Wrapper<FriendshipLinkEntity> wrapper) {
 		return baseMapper.selectVO(wrapper);
	}
	
	@Override
	public List<FriendshipLinkView> selectListView(Wrapper<FriendshipLinkEntity> wrapper) {
		return baseMapper.selectListView(wrapper);
	}

	@Override
	public FriendshipLinkView selectView(Wrapper<FriendshipLinkEntity> wrapper) {
		return baseMapper.selectView(wrapper);
	}

}
